// 封装接口调用数据函数
const request = (path,param) => {
    let url = "https://www.zhengzhicheng.cn/api/public/v1/" + path;
    return new Promise(function (resolv,reject){
        wx.request({
            url:url,
            method:"GET",
            data:param,
            success:(res)=>{
             resolv(res);
            }
          })
    })
}

export default request;